<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnUploadedAtInVersionTable extends AbstractMigration
{
    public function up()
    {
        $this->table('version')
            ->addColumn('uploaded_at', 'integer', [
                'null' => false,
                'default' => 0,
                'limit' => 11,
                'comment' => '上传时间',
            ])->save();
    }

    public function down()
    {
        $this->table('version')
            ->removeColumn('uploaded_at')
            ->save();
    }
}
